https://pst.iorinn.moe/archives/sol-cf-193D.html
CF193D Two Segments [线段树]